// [[ OnflowGenerator File UUID: 4101e6477ed243cd8703f41493b34a4f  ]]
package com.itdct.onflow.system.role.qo

import com.itdct.onflow.core.qo.BaseQo
import com.itdct.onflow.core.type.Add
import com.itdct.onflow.core.type.Update
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Length

/**
 * @author DCTANT
 * @date 2025-09-01 14:06:58
 * @version 1.0
 * @description 角色菜单关联编辑入参
 */
@Schema(name = "角色菜单关联编辑入参", description = "角色菜单关联编辑入参")
class SysRoleMenuEditQo : BaseQo() {
    // [[ OnflowGenerator Range (- fields -) Start ]]
    @Schema(title = "平台类型", example = "")
    @NotBlank(message = "请输入平台类型", groups = [Add::class, Update::class])
    @Length(max = 64, message = "平台类型不能超过64个字符", groups = [Add::class, Update::class])
    var platformType: String? = null

    @Schema(title = "角色id", example = "")
    @NotNull(message = "请输入角色id", groups = [Add::class, Update::class])
    var roleId: Long? = null

    @Schema(title = "菜单id", example = "")
    @NotNull(message = "请输入菜单id", groups = [Add::class, Update::class])
    var menuId: Long? = null

    @Schema(title = "备注", example = "")
    @Length(max = 500, message = "备注不能超过500个字符", groups = [Add::class, Update::class])
    var remark: String? = null

// [[ OnflowGenerator Range (- fields -) End ]]
}